# -*- coding: utf-8 -*-
# Author zwhset

from flask import Blueprint, render_template

from modules.log import log_write
from modules.users.auth_user import is_login
from modules.docker_api import Docker


b_docker = Blueprint("b_docker", __name__)

docker = Docker()

@b_docker.route("/docker/images")
@is_login
def images():
    images = docker.images()
    return render_template("docker_images.html", images=images)